|
Rack provides a modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses it unifies the API for web servers, web frameworks, and software in between (the so-called middleware) into a single method call. Rack is used by many Ruby web frameworks and libraries, such as Ruby On Rails and Sinatra. It is available as a Ruby Gem. Rack has already inspired a JavaScript framework〔(jack - introduction ). Jackjs.org. Retrieved on 2013-09-20.〕 (jackjs) and a Perl one (Plack), a Common Lisp one〔(clacklisp.org ). Retrieved on 2014-10-17.〕 (Clack), and has resulted in the Ruby developer quasi-standard of "rack-compliant".〔(Pancake: How To Stack and Loosely Couple Rack-Based Webapps Together ). Rubyinside.com (2009-12-04). Retrieved on 2013-09-20.〕 It was also cited as an inspiration for OWIN.〔http://www.asp.net/aspnet/overview/owin-and-katana/an-overview-of-project-katana. Asp.net. Retrieved on 2014-10-01.〕 ==Example application== A Rack-compatible "Hello World" application in Ruby syntax: 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Rack (web server interface)」の詳細全文を読む スポンサード リンク
|